package com.showsu.editor.entity.platform.xhs;


import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: Jhonplue
 * @Description: Xhs作品评论列表
 * @Date: Created in 16:09 下午 2023/8/28
 * @Modified By:
 */
@Data
public class XhsAwemeCommentInfo implements Serializable {

    private String id;
    private Long time;
    private Integer like_count;
    private Integer sub_comment_count;
    private Integer status;
    private String content;
    private List<Image> pictures;
    private List<SubComments> sub_comments;


    @Data
    public class Image implements Serializable {
        private String url;
        private String origin_url;
        private String file_id;
        private Integer width;
        private Integer height;
        private List<ImageInfo> info_list;
        private String video_id;
        private String video_info;
        private VideoInfo videoInfo;

        @Data
        public class ImageInfo implements Serializable {
            private String image_scene;
            private String url;
        }

        @Data
        public class VideoInfo implements Serializable {
            private String video_id;
            private String user_level;
            private Stream stream;

            @Data
            public class Stream implements Serializable {
                private List<H264> h264;
                private List<H264> h265;

                @Data
                public class H264 implements Serializable {
                    private String master_url;
                    private String masterUrl;
                    private List<String> backup_urls;
                    private Long duration;
                    private String format;
                    private Integer height;
                    private Integer width;
                    private String quality_type;
                    private Long size;
                    private String stream_desc;
                    private String stream_type;
                    private Long video_bitrate;
                    private String video_codec;
                    private Long video_duration;
                    private Integer weight;
                }

            }
        }

    }

    @Data
    public class SubComments implements Serializable {
        private Integer like_count;
        private TargetComment target_comment;

        @Data
        public class TargetComment implements Serializable {
            private String id;
        }
    }


}
